<{include file="common/header.tpl"}>
<{include file="common/navbar.tpl"}>
<div class="container" style="width: 100%;">
	<form action="/tool/save" name="form" method="post">
		<div class="row top-span-block">
			<label>url地址：</label>
			<input type="text" class="form-control" name="url">
		</div>
		<div class="row clearfix top-span-block"></div>
		<div class="row">
			<div class="col-md-12">
				<input type="submit" name="submit" value="提交" class="btn">
			</div>
		</div>
	</form>
</div>
<div class="container" style="width: 100%;">
	<form action="/tool/refreshIndex" name="form" method="post">
		<div class="row clearfix top-span-block"></div>
		<div class="row">
			<div class="col-md-12">
				<input type="submit" name="submit" value="首页缓存" class="btn">
			</div>
		</div>
	</form>
</div>
<div class="container" style="width: 100%;">
	<div class="row clearfix top-span-block"></div>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>图标</th>
				<th>标题</th>
				<th>链接</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<{foreach item=url key=index from=$list}>
			<tr>
				<td><img src="<{$url.icon}>" width="30" height="30" loading="lazy" alt="<{$url.title}>" class="img-circle pull-left img-thumbnail"></td>
				<td style="width:20%; overflow:hidden;"><{$url.title}></td>
				<td><a href="<{$url.url}>">访问</a></td>
				<td>
					<a href="/tool/edit?id=<{$url.id}>&type=edit">编辑</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="/tool/edit?id=<{$url.id}>&type=hide">隐藏</a>
				</td>
			</tr>
		<{/foreach}>
		</tbody>
	</table>
</div>
<{include file="common/admin_footer.tpl"}>
